home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17203 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  959 b 

  1. Path: news.lei.net!Psidmvl
  2. From: sidmvl@pixi.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie question
  5. Date: 14 Apr 1996 05:14:41 GMT
  6. Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net
  7. Message-ID: <4kq1k1$253@ginger.lei.net>
  8. References: <4kq1d5$253@ginger.lei.net>
  9. NNTP-Posting-Host: mothra16.pixi.com
  10.  
  11. oops Email address was messed up it is corrected now.  Thanks.
  12.  
  13. I just started a C++ class in school, and I was writing my first project.  I 
  14. have to include a char, double, int, and a string.  The program compiled just 
  15. fine, but when I run the program I get a fatal error that says I have a float 
  16. overflow.  I know I must be missing something extremely basic, but the help 
  17. files were no help.  The input was digit with two decimal places.  I used the 
  18. following statement to define the precision.
  19. cout.setf(ios::showpoint);
  20. cout.precision (4);
  21.  
  22. Any help would be appreciated.
  23.  
  24. Everyone was once a Newbie........I think.
  25.